<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="lushu">
		<title>退普通发票</title>
		<script language="javascript" type="text/javascript" src="../script/print.js"></script>
		<script language="javascript" src="../script/common.js" type="text/javascript"></script>
		<script language="javascript" src="../script/card.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript">
			var Page;
			
			function initPageElements(){
				Page.readonlyTableStyle = 'col2 label6';
				Page.forbiddenStatus = false;
				Page.hideBalance = true;
				Page.initOperationForm = function(result){
					if (result.cardUser.invoiceType != InvoiceType.DEPOSIT){
						showWarning("该客户不能退普通充值发票");
						return false;
					}
					return true;
				}
			}
		</script>
	</head>
	<body onload="TX.NoCardTrade.init()">
		<div class="nav"><div id="nav">&nbsp;</div></div>
		<div id="searchFormDiv">
			<div class="form">
				<div class="formTitle">请输入退发票帐户的相关信息</div>	
				<form id="searchForm" name="searchForm">
					<table cellSpacing="0" cellPadding="4" width="100%" border="0" align="center">
						<tr>
							<td>
								<label>卡&nbsp;&nbsp;&nbsp;&nbsp;号</label> 
								<input type="text" size="22" name="asn" value="" maxlength="16" onblur="checkV(this,'asn');">
								<button onclick="Page.searchForm.asn.value=TX.Trade.readAsn();checkV(Page.searchForm.asn,'asn');">读 卡</button>
							</td>
							<td>
								<label>客户编号</label> 
								<input type="text" size="22" name="cardUserUnique" value="" maxlength="18" onblur="checkV(this,'uniqueId')">
							</td>
							<td><button name="search" onclick="TX.NoCardTrade.getUserAccountInfo()">查  询</button></td>
						</tr>
					</table>
				</form>	
			</div>
		</div>
		
		<div id="operationFormDiv" style="display:none;">
			<div class="form">
				<div class="formTitle">退普通发票</div>	
				<form id="operationForm" name="operationForm">
					<span id="readonlyInfo"></span>
					<table cellSpacing="0" cellPadding="4" width="100%" border="0" class="col2 label6">
						<tr>
							<td><label>退票金额(元)</label> <input type="text" name="amount" onblur="Page.amountValidator(this)"><span class="des">*</span></td>
							<td></td>
						</tr>
					</table>
					<p>
						<button id="operation" onclick="TX.Invoice.drawback()">保 存</button>
						<button onclick="TX.NoCardTrade.goFirstPage()">返 回</button>
					</p>
				</form>
			</div>
		</div>

	</body>
</html>